/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-04-09 18:08:13
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-04-11 16:19:04
 * @FilePath: \vue-project\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEvie
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import ROUTES from './routeUrl'
const router = createRouter({
  history: createWebHashHistory(),
  routes: ROUTES,
  //滚动行为，用户切换回页面后保留滚动位置
  scrollBehavior() {
    return {
      left: 0,
      top: 0
    }
  }
})

export default router
